Skip to content

Qualify qs.Commons palette references for Qt 6.12 - #1

Merged
Pillumz merged 1 commit into
mainfrom
fix/qt6.12-color-qualify
Oct 8, 2026
Merged

Pillumz merged 1 commit into
mainfrom
fix/qt6.12-color-qualify

Conversation

@Pillumz

@Pillumz Pillumz commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

What

QtQuick 6.12 ships a built-in Color type that shadows the unqualified Color singleton from qs.Commons. Unqualified Color.<role> then resolves to the wrong type and reads as undefined, so the widget loses its theme palette.

Import qs.Commons as Commons and reference Commons.Color, keeping Style/Border/Util unqualified. Mirrors upstream Omarchy omacom/omarchy#14553 (b83d3df0); behaves identically on Qt 6.11.

Verification (Qt 6.12.0, quickshell 0.3.2, offscreen)

Real Panel.qml hosted with the genuine qs.Commons/qs.Ui and a PluginBarApi facade:

  • before: @SyncthingIcon.qml[100] TypeError: Cannot read property 'background' of undefined, @SyncthingIcon.qml[105] Unable to assign [undefined] to QColor
  • after: loads clean; foreground/urgent resolve to theme colours

Provenance

Authored by DeepSeek V4.1 Flash (pi herd worker); not independently reviewed here.

Independent review

GPT-6.1 Sol independently reviewed the exact committed diff: only explicit Commons.Color qualification and its required aliased import changed. Reversing those edits reproduces the original files byte-for-byte. Existing unqualified Style/Border/Util access and all layout, colors and operational logic are preserved. Test/runtime verification is the author’s, not claimed by this reviewer. No unresolved code concern from this review.

QtQuick 6.12 introduces a built-in Color type that shadows the unqualified
Color singleton from qs.Commons. Unqualified references such as
`Color.foreground` then resolve to the wrong type and read as undefined, so
the widget renders without its theme palette.

Import qs.Commons under the Commons alias and reference Commons.Color, keeping
Style/Border/Util unqualified. This mirrors the upstream Omarchy fix
(omacom/omarchy#14553, b83d3df0) and behaves identically on Qt 6.11.

Provenance: authored by DeepSeek V4.1 Flash (pi herd worker).
@Pillumz
Pillumz merged commit da337a0 into main Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant